package DiYiZhou2;

import java.util.Scanner;

public class LianXi6 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a,b,c,r;
        System.out.println("请输入三个数");
        a= scanner.nextInt();
        b= scanner.nextInt();
        c= scanner.nextInt();
        if (a>b){
            r=a;a=b;b=r;
        }if (a>c){
            r=a;a=c;c=r;
        }
        if (b>c){
            r=b;b=c;c=r;
        }
        System.out.println("a = " + a);
        System.out.println("b = " + b);
        System.out.println("c = " + c);

    }
}
